﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rud.Holmgren.TabulexLib
{

    public enum TbxEventType
    {
        Pickup = 9,
        PlayDate = 18,
        Holiday = 112
    }

    public class TbxChildStatus
    {
        public string typeid { get; set; }
        public DateTime datetime { get; set; }
        public string desc { get; set; }
    }

    public class TbxAppointment
    {
        public string id { get; set; }
        public string typeid { get; set; }
        public DateTime datetime { get; set; }
        public string desc { get; set; }
        public string pickup { get; set; }
        public string homewith { get; set; }
        public string textline { get; set; }
    }

    public class TbxChildInfo
    {
        public TbxChildStatus status { get; set; }
        public List<TbxAppointment> appointments { get; set; }
    }

    public class TbxChild
    {
        public int id { get; set; }
        public string sfo_id { get; set; }
        public string class_str { get; set; }
        public int group_id { get; set; }
        public string firstname { get; set; }
        public string lastname { get; set; }
    }

    public class TbxParent
    {
        public int id { get; set; }
        public string firstname { get; set; }
        public string lastname { get; set; }

        public List<TbxChild> children { get; set; }
    }

    public class TbxLogin
    {
        public TbxParent parent { get; set; }
    }


    public class TbxGroup
    {
        public string name { get; set; }
        public int departmentid { get; set; }
        public string groupicon { get; set; }
        public int id { get; set; }
        public string sfoid { get; set; }
    }

    public class TbxSchoolClass
    {
        public string name { get; set; }
        public string Klassetrin { get; set; }
        public string classtrack { get; set; }
        public int departmentid { get; set; }
        public string schoolcode { get; set; }
        public string schoolname { get; set; }
        public int id { get; set; }
        public string sfoid { get; set; }

        public List<TbxSchoolClassChild> pupils { get; set; }
    }

    public class TbxSchoolClassChild
    {
        public int id { get; set; }
        public string name { get; set; }
    }

    public class TbxGroupsAndClasses
    {
        public List<TbxGroup> groups { get; set; }
        public List<TbxSchoolClass> classes { get; set; }
    }
}
